package com.taosdata.taosdemo.dao;

import java.util.Map;

/**
 * @author PC
 */
public interface DatabaseMapper {
    /**
     * create database if not exists XX
     *
     * @param dbname
     * @return void
     * @throws
     **/
    void createDatabase(String dbname);

    /**
     * drop database if exists XX
     *
     * @param dbname
     * @return void
     * @throws
     **/
    void dropDatabase(String dbname);

    /**
     * create database if not exists XXX keep XX days XX replica XX
     *
     * @param map
     * @return void
     * @throws
     **/
    void createDatabaseWithParameters(Map<String, String> map);

    /**
     * use XX
     *
     * @param dbname
     * @return void
     * @throws
     **/
    void useDatabase(String dbname);

    // TODO：alter database

    // TODO：show database
}
